package com.wu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 0227127 on 2018/6/15.
 */
@Controller
public class HelloController {
    @RequestMapping("/")
    public String hello(){
        return "hello";
    }
    @RequestMapping("/user")
    public String helloUser(Model model){
        model.addAttribute("user", "Lina");
        return "hello2";
    }
}